import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
const routes: Array<RouteRecordRaw> = [
  {
    path: '/login',
    name: 'Login',
    meta: {
      title: '登录'
    },
    component: () => import('../Login.vue')
  },
  {
    path: '/scan',
    name: 'scan',
    meta: {
      title: '二维码扫码'
    },
    component: () => import('../views/qrcode/Scan.vue')
  },
  {
    path: '/qrcode',
    name: 'qrcode',
    meta: {
      title: '生成二维码'
    },
    component: () => import('../views/qrcode/qrcode.vue')
  },
  {
    path: '/pageAuth',
    name: 'Auth',
    meta: {
      title: '同步用户'
    },
    component: () => import('../Auth.vue')
  },
  {
    path: '/bindPhone',
    name: 'BindPhone',
    meta: {
      title: '绑定手机号'
    },
    component: () => import('../views/BindPhone.vue')
  },
  {
    path: '/confirm_work',
    name: 'ConfirmWork',
    meta: {
      title: '确认记工'
    },
    component: () => import('../views/ConfirmWork.vue')
  },
  {
    path: '/signature',
    name: 'Signature',
    meta: {
      title: '查看签字'
    },
    component: () => import('../views/Signature.vue')
  },
  {
    path: '/more',
    name: 'More',
    meta: {
      title: '查看记工'
    },
    component: () => import('../views/More.vue')
  }
]
const router = createRouter({
  history: createWebHashHistory(),
  // history: createWebHistory(),
  routes
})
export default router
